package com.ruoyi.controller;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.domain.UserHealthServe;
import com.ruoyi.service.UserHealthServeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@RestController
@RequestMapping("/kangyue/userhealthserve")
public class UserHealthServeController extends BaseController {

    @Autowired
    private UserHealthServeService userHealthServeService;

    /**
     * 获取最近用户服务
     *
     * @param userId 用户ID
     * @return 数据列表
     */
    @GetMapping("/userhealthserve")
    public TableDataInfo getHealthServe(@RequestParam Long userId) {
        List<UserHealthServe> list = userHealthServeService.selectuserhealthServe(userId);
        return getDataTable(list);
    }
}
